-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (26 loc) · 1.32 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.1)
set(CMAKE_SUPPRESS_REGENERATION true)
set(CMAKE_MACOSX_RPATH Off)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS ON)
include(Kiwi_External.cmake)
project(kiwi_externals CXX)
set_kiwi_external_path("${PROJECT_SOURCE_DIR}/libs/")
add_kiwi_external(external_kawa kawa ${PROJECT_SOURCE_DIR}/externals/kawa.cpp)
add_kiwi_external(external_koala koala ${PROJECT_SOURCE_DIR}/externals/koala.cpp)
add_kiwi_external(external_kirikou kirikou ${PROJECT_SOURCE_DIR}/externals/kirikou.cpp)
add_kiwi_external(external_kroko kroko ${PROJECT_SOURCE_DIR}/externals/kroko.cpp)
set(TEST_SOURCES
${PROJECT_SOURCE_DIR}/Kiwi_External.hpp
${PROJECT_SOURCE_DIR}/Kiwi_Loader.hpp
test/test.cpp)
source_group(src FILES ${TEST_SOURCES})
add_executable(kiwi_loader_test ${TEST_SOURCES})
target_include_directories(kiwi_loader_test PRIVATE ${PROJECT_SOURCE_DIR})
if("${CMAKE_SYSTEM}" MATCHES "Linux")
target_link_libraries(kiwi_loader_test ${CMAKE_DL_LIBS})
endif()
set_target_properties(kiwi_loader_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/libs/")
set_target_properties(kiwi_loader_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE "${PROJECT_SOURCE_DIR}/libs/")
set_target_properties(kiwi_loader_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG "${PROJECT_SOURCE_DIR}/libs/")