-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (20 loc) · 1.04 KB
/
CMakeLists.txt
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
29
30
cmake_minimum_required(VERSION 3.16)
project(APYI)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
message(STATUS "Build type not specified: Use Release by default")
endif(NOT CMAKE_BUILD_TYPE)
set(CMAKE_CXX_STANDARD 17)
add_executable(APYI main.cpp)
find_package(Python COMPONENTS Interpreter Development)
message("Python_FOUND:${Python_FOUND}")
message("Python_VERSION:${Python_VERSION}")
message("Python_Development_FOUND:${Python_Development_FOUND}")
message("Python_LIBRARIES:${Python_LIBRARIES}")
message("Python_LIBRARIES:${Python_LIBRARY_DIRS}")
message("${Python_INCLUDE_DIRS}")
#find_package(Boost 1.74.0 REQUIRED)
include_directories(./source/ ${Python_INCLUDE_DIRS} "${PROJECT_SOURCE_DIR}/source/APYI/ThirdParty/include/")
add_subdirectory(source)
target_link_libraries(APYI PRIVATE apyi ${Python_LIBRARIES} "${PROJECT_SOURCE_DIR}/source/APYI/ThirdParty/lib/jsoncpp_static.lib")
target_include_directories(APYI PUBLIC "${PROJECT_SOURCE_DIR}/source/" ${Python_INCLUDE_DIRS} "${PROJECT_SOURCE_DIR}/source/APYI/ThirdParty/include/")