mirror of https://github.com/Kylart/KawAnime.git
include boost
This commit is contained in:
parent
911968bb08
commit
9d20d78f72
|
@ -9,12 +9,17 @@ set(CMAKE_BUILD_TYPE Release)
|
||||||
|
|
||||||
# Windows things...
|
# Windows things...
|
||||||
if (MSVC_VERSION GREATER_EQUAL "1900")
|
if (MSVC_VERSION GREATER_EQUAL "1900")
|
||||||
message("MSVC 19 detected (${MSVC_VERSION}), setting flags")
|
|
||||||
include(CheckCXXCompilerFlag)
|
include(CheckCXXCompilerFlag)
|
||||||
CHECK_CXX_COMPILER_FLAG("/std:c++14" _cpp_14_flag_supported)
|
CHECK_CXX_COMPILER_FLAG("/std:c++14" _cpp_14_flag_supported)
|
||||||
if (_cpp_14_flag_supported)
|
if (_cpp_14_flag_supported)
|
||||||
add_compile_options("/std:c++14")
|
add_compile_options("/std:c++14")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(BOOST_USE_STATIC_LIBS ON)
|
||||||
|
set(Boost_USE_MULTITHREADED ON)
|
||||||
|
find_package(Boost COMPONENTS filesystem REQUIRED)
|
||||||
|
|
||||||
|
include_directories(${Boost_INCLUDE_DIRS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# LibGCrypt
|
# LibGCrypt
|
||||||
|
@ -38,11 +43,6 @@ add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME} PRIVATE "lib/anitomy")
|
target_include_directories(${PROJECT_NAME} PRIVATE "lib/anitomy")
|
||||||
|
|
||||||
find_package(Boost)
|
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME} PRIVATE ${Boost_INCLUDE_DIRS})
|
|
||||||
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES})
|
|
||||||
|
|
||||||
## Libtorrent
|
## Libtorrent
|
||||||
find_package(LibtorrentRasterbar 1.2 REQUIRED)
|
find_package(LibtorrentRasterbar 1.2 REQUIRED)
|
||||||
|
|
||||||
|
@ -74,4 +74,9 @@ target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_JS_INC})
|
||||||
|
|
||||||
# Essential library files to link to a node addon
|
# Essential library files to link to a node addon
|
||||||
# You should add this line in every CMake.js based project
|
# You should add this line in every CMake.js based project
|
||||||
target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB})
|
if(MSVC)
|
||||||
|
target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB};${Boost_LIBRARIES})
|
||||||
|
else()
|
||||||
|
target_link_libraries(${PROJECT_NAME} ${CMAKE_JS_LIB})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue