mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-01 16:05:07 +01:00
CMake: Add cryptopp include path to target property
This commit is contained in:
parent
74afcd5328
commit
4f84372bc2
6
externals/cryptopp/CMakeLists.txt
vendored
6
externals/cryptopp/CMakeLists.txt
vendored
@ -10,6 +10,7 @@
|
|||||||
# - disabled installation
|
# - disabled installation
|
||||||
# - disabled documentation
|
# - disabled documentation
|
||||||
# - configured to build a static library only
|
# - configured to build a static library only
|
||||||
|
# - adds include directories to the library target
|
||||||
|
|
||||||
include(TestBigEndian)
|
include(TestBigEndian)
|
||||||
include(CheckCXXCompilerFlag)
|
include(CheckCXXCompilerFlag)
|
||||||
@ -148,14 +149,15 @@ endif()
|
|||||||
# Compile targets
|
# Compile targets
|
||||||
#============================================================================
|
#============================================================================
|
||||||
add_library(cryptopp STATIC ${cryptopp_SOURCES})
|
add_library(cryptopp STATIC ${cryptopp_SOURCES})
|
||||||
|
target_include_directories(cryptopp INTERFACE .)
|
||||||
|
|
||||||
#============================================================================
|
#============================================================================
|
||||||
# Third-party libraries
|
# Third-party libraries
|
||||||
#============================================================================
|
#============================================================================
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
target_link_libraries(cryptopp ws2_32)
|
target_link_libraries(cryptopp PRIVATE ws2_32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
target_link_libraries(cryptopp ${CMAKE_THREAD_LIBS_INIT})
|
target_link_libraries(cryptopp PRIVATE ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
@ -375,7 +375,6 @@ set(HEADERS
|
|||||||
)
|
)
|
||||||
|
|
||||||
include_directories(../../externals/dynarmic/include)
|
include_directories(../../externals/dynarmic/include)
|
||||||
include_directories(../../externals/cryptopp)
|
|
||||||
|
|
||||||
create_directory_groups(${SRCS} ${HEADERS})
|
create_directory_groups(${SRCS} ${HEADERS})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user