2018-06-17 20:33:39 +02:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
2018-06-23 13:52:17 +02:00
|
|
|
project(controllerpatcher)
|
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 13:52:17 +02:00
|
|
|
add_library(controllerpatcher STATIC ${SOURCE_FILES} ${HEADER_FILES})
|
2018-06-17 20:33:39 +02:00
|
|
|
|
2018-06-23 13:52:17 +02:00
|
|
|
target_link_libraries(controllerpatcher
|
|
|
|
utils)
|
|
|
|
|
|
|
|
target_include_directories(controllerpatcher PUBLIC "include")
|
|
|
|
target_include_directories(controllerpatcher PRIVATE "src")
|
2018-06-17 20:33:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
include_directories("${WUT_ROOT}/include/libutils" REQUIRED)
|
|
|
|
|
2018-06-23 13:52:17 +02:00
|
|
|
wut_enable_stdcpp(controllerpatcher)
|
|
|
|
wut_default_malloc(controllerpatcher)
|
2018-06-17 20:33:39 +02:00
|
|
|
|
2018-06-23 13:52:17 +02:00
|
|
|
target_include_directories(controllerpatcher PUBLIC "include")
|
|
|
|
target_compile_options(controllerpatcher PUBLIC "-D__LOGGING__")
|
2018-06-20 15:05:39 +02:00
|
|
|
|
2018-06-17 20:33:39 +02:00
|
|
|
|
2018-06-23 13:52:17 +02:00
|
|
|
install(TARGETS controllerpatcher
|
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*")
|