Add conf to CMakeLists.txt

Former-commit-id: 06d485991e06efb84e54e7ba6bbd0ae650442a59
This commit is contained in:
jinhai 2019-04-14 10:23:10 +08:00
parent c250d00385
commit 03d5d3f2c0
2 changed files with 7 additions and 3 deletions

View File

@ -43,13 +43,17 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/" ${CMAKE_MODUL
set(VECWISE_ENGINE_INCLUDE ${PROJECT_SOURCE_DIR}/include)
set(VECWISE_ENGINE_SRC ${PROJECT_SOURCE_DIR}/src)
set(VECWISE_THIRD_PARTY ${CMAKE_CURRENT_SOURCE_DIR}/third_party/build)
set(VECWISE_THIRD_PARTY ${CMAKE_CURRENT_SOURCE_DIR}/third_party)
set(VECWISE_THIRD_PARTY_BUILD ${CMAKE_CURRENT_SOURCE_DIR}/third_party/build)
add_compile_definitions(PROFILER=${PROFILER})
include_directories(${VECWISE_ENGINE_INCLUDE})
include_directories(${VECWISE_ENGINE_SRC})
include_directories(${VECWISE_THIRD_PARTY}/include)
include_directories(${VECWISE_THIRD_PARTY_BUILD}/include)
execute_process(COMMAND bash build.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/third_party)
add_subdirectory(src)

View File

@ -5,7 +5,7 @@
#-------------------------------------------------------------------------------
link_directories(
"${CMAKE_BINARY_DIR}/lib"
"${VECWISE_THIRD_PARTY}/lib"
"${VECWISE_THIRD_PARTY_BUILD}/lib"
)
set(unittest_srcs