1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-14 18:00:09 +00:00
Laika/panel/CMakeLists.txt
CPunch fb71dfb3c3 Added panel!
- minor refactoring
- TODO: panel & cnc should really use unique keys. maybe add config file?
2022-02-14 00:22:36 -06:00

23 lines
721 B
CMake

cmake_minimum_required(VERSION 3.10)
set(PANEL_INCLUDEDIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
set(CURSES_NEED_NCURSES TRUE)
project(LaikaPanel VERSION 1.0)
# Put CMake targets (ALL_BUILD/ZERO_CHECK) into a folder
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
find_package(Curses)
# compile LaikaPanel
file(GLOB_RECURSE PANELSOURCE ${CMAKE_CURRENT_SOURCE_DIR}/src/**.c)
add_executable(LaikaPanel ${PANELSOURCE})
target_link_libraries(LaikaPanel PUBLIC LaikaLib ${CURSES_LIBRARIES})
# add the 'DEBUG' preprocessor definition if we're compiling as Debug
target_compile_definitions(LaikaPanel PUBLIC "$<$<CONFIG:Debug>:DEBUG>")
# add include directory
target_include_directories(LaikaPanel PUBLIC ${PANEL_INCLUDEDIR})