CMake: Provide proper interface targets from dependencies
This commit is contained in:
1 parent
aec309a533
commit
6564fcffdf
23 files changed
+465
-237
No files matched your search
+12
-14
@@ -55,20 +55,18 @@ set(g3dlib_STAT_SRCS
|
||||
source/Vector4.cpp
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${CMAKE_SOURCE_DIR}/dep/zlib
|
||||
)
|
||||
else()
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
)
|
||||
endif()
|
||||
|
||||
add_library(g3dlib STATIC ${g3dlib_STAT_SRCS})
|
||||
|
||||
target_include_directories(g3dlib
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
|
||||
target_link_libraries(g3dlib
|
||||
${ZLIB_LIBRARIES}
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
)
|
||||
PUBLIC
|
||||
zlib
|
||||
threads)
|
||||
|
||||
set_target_properties(g3dlib
|
||||
PROPERTIES
|
||||
FOLDER
|
||||
"dep")
|
||||
Reference in new issue
Block a user