From c873c2473c8a00beaf06d9aa2bacef9cee44a445 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 23 Jun 2018 13:52:17 +0200 Subject: [PATCH] Rename from "controllerpatcherwut" back to "controllerpatcher" --- CMakeLists.txt | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f4c3585..138a964 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,28 +1,29 @@ cmake_minimum_required(VERSION 3.2) -project(controllerpatcherwut) +project(controllerpatcher) include("${WUT_ROOT}/share/wut.cmake" REQUIRED) file(GLOB_RECURSE SOURCE_FILES *.c *.cpp) file(GLOB_RECURSE HEADER_FILES *.h) -add_library(controllerpatcherwut STATIC ${SOURCE_FILES} ${HEADER_FILES}) +add_library(controllerpatcher STATIC ${SOURCE_FILES} ${HEADER_FILES}) -target_link_libraries(controllerpatcherwut - utilswut) +target_link_libraries(controllerpatcher + utils) + +target_include_directories(controllerpatcher PUBLIC "include") +target_include_directories(controllerpatcher PRIVATE "src") -target_include_directories(controllerpatcherwut PUBLIC "include") -target_include_directories(controllerpatcherwut PRIVATE "src") include_directories("${WUT_ROOT}/include/libutils" REQUIRED) -wut_enable_stdcpp(controllerpatcherwut) -wut_default_malloc(controllerpatcherwut) +wut_enable_stdcpp(controllerpatcher) +wut_default_malloc(controllerpatcher) -target_include_directories(controllerpatcherwut PUBLIC "include") -target_compile_options(controllerpatcherwut PUBLIC "-D__LOGGING__") +target_include_directories(controllerpatcher PUBLIC "include") +target_compile_options(controllerpatcher PUBLIC "-D__LOGGING__") -install(TARGETS controllerpatcherwut +install(TARGETS controllerpatcher ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib") install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION "${CMAKE_INSTALL_PREFIX}/include"