controller_patcher/CMakeLists.txt

30 lines
976 B
CMake
Raw Normal View History

2018-06-17 20:33:39 +02:00
cmake_minimum_required(VERSION 3.2)
2018-06-23 14:45:56 +02:00
project(controllerpatcherwut)
2018-06-17 20:33:39 +02:00
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
file(GLOB_RECURSE SOURCE_FILES *.c *.cpp)
file(GLOB_RECURSE HEADER_FILES *.h)
2018-06-23 14:45:56 +02:00
add_library(controllerpatcherwut STATIC ${SOURCE_FILES} ${HEADER_FILES})
2018-06-17 20:33:39 +02:00
2018-06-23 14:45:56 +02:00
target_link_libraries(controllerpatcherwut
utilswut)
2018-06-23 14:45:56 +02:00
target_include_directories(controllerpatcherwut PUBLIC "include")
target_include_directories(controllerpatcherwut PRIVATE "src")
2018-06-17 20:33:39 +02:00
2018-06-23 14:45:56 +02:00
include_directories("${WUT_ROOT}/include/libutilswut" REQUIRED)
2018-06-17 20:33:39 +02:00
2018-06-23 14:45:56 +02:00
wut_enable_stdcpp(controllerpatcherwut)
wut_default_malloc(controllerpatcherwut)
2018-06-17 20:33:39 +02:00
2018-06-23 14:45:56 +02:00
target_include_directories(controllerpatcherwut PUBLIC "include")
target_compile_options(controllerpatcherwut PUBLIC "-D__LOGGING__")
2018-06-20 15:05:39 +02:00
2018-06-17 20:33:39 +02:00
2018-06-23 14:45:56 +02:00
install(TARGETS controllerpatcherwut
2018-06-17 20:33:39 +02:00
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/
DESTINATION "${CMAKE_INSTALL_PREFIX}/include"
FILES_MATCHING PATTERN "*.h*")