libgui-maschell/CMakeLists.txt

31 lines
1.0 KiB
CMake
Raw Normal View History

2018-06-21 20:44:58 +02:00
cmake_minimum_required(VERSION 3.2)
project(guiwut)
2018-06-21 20:44:58 +02:00
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
file(GLOB_RECURSE SOURCE_FILES *.c *.cpp)
file(GLOB_RECURSE HEADER_FILES *.h*)
add_library(guiwut STATIC ${SOURCE_FILES} ${HEADER_FILES})
2018-06-21 20:44:58 +02:00
target_link_libraries(guiwut
utilswut)
2018-06-21 20:44:58 +02:00
include_directories("$ENV{WUT_ROOT}/include/libutilswut" REQUIRED)
2018-06-21 20:44:58 +02:00
include_directories("$ENV{DEVKITPRO}/portlibs/ppc/include" REQUIRED)
include_directories("$ENV{DEVKITPRO}/portlibs/ppc/include/freetype2" REQUIRED)
target_include_directories(guiwut PUBLIC "include")
target_include_directories(guiwut PRIVATE "src")
2018-06-21 20:44:58 +02:00
wut_enable_stdcpp(guiwut)
wut_default_malloc(guiwut)
2018-06-21 20:44:58 +02:00
target_include_directories(guiwut PUBLIC "include")
target_compile_options(guiwut PUBLIC "-D__LOGGING__")
2018-06-21 20:44:58 +02:00
install(TARGETS guiwut
2018-06-21 20:44:58 +02:00
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/
DESTINATION "${CMAKE_INSTALL_PREFIX}/include/libguiwut"
2018-06-21 20:44:58 +02:00
FILES_MATCHING PATTERN "*.h*")