blob: 9ef4889f2f533488a81313ed484564b96c67fa58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
project(SDL2)
add_library(SDL2 INTERFACE IMPORTED)
set_property(TARGET SDL2
PROPERTY INTERFACE_INCLUDE_DIRECTORES
"${CMAKE_SOURCE_DIR}/src/SDL2/include")
set_property(TARGET SDL2
PROPERTY INTERFACE_LINK_LIBRARIES
"libSDL2main.a"
"libSDL2-2.0.0.dylib" )
set_property(TARGET SDL2
PROPERTY INTERFACE_COMPILE_OPTIONS
"-L${CMAKE_CURRENT_SOURCE_DIR}")
set_property(
TARGET SDL2
APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:>
)
message(STATUS "
${lib}: LINK_INTERFACE_LIBRARIES = \"${lil}\"
INTERFACE_LINK_LIBRARIES = \"${ill}\""
)
|