libki/CMakeLists.txt

34 lines
807 B
CMake
Raw Normal View History

project(ki)
cmake_minimum_required(VERSION 3.1)
2018-03-31 16:52:20 +00:00
set(RAPIDXML_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/third_party)
add_library(RapidXML INTERFACE)
target_include_directories(RapidXML INTERFACE ${RAPIDXML_INCLUDE_DIR})
add_library(${PROJECT_NAME})
set_target_properties(${PROJECT_NAME}
PROPERTIES
LINKER_LANGUAGE CXX
CXX_STANDARD 11
)
target_include_directories(${PROJECT_NAME}
2018-03-26 20:39:10 +00:00
PRIVATE
${PROJECT_SOURCE_DIR}/include
INTERFACE
${PROJECT_SOURCE_DIR}/include
)
2018-03-31 16:52:20 +00:00
target_link_libraries(${PROJECT_NAME} RapidXML)
2018-03-26 20:39:10 +00:00
add_subdirectory("src/dml")
option(KI_BUILD_EXAMPLES "Determines whether to build examples." ON)
if (KI_BUILD_EXAMPLES)
add_subdirectory("examples")
endif()
option(KI_BUILD_TESTS "Determines whether to build tests." ON)
if (KI_BUILD_TESTS)
enable_testing()
add_subdirectory("test")
endif()