f61e73b639
And remove a few windows.h interface functions used before. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
47 lines
741 B
CMake
47 lines
741 B
CMake
include(FindPkgConfig)
|
|
|
|
set(SOURCE_FILES
|
|
main.cpp
|
|
world.cpp
|
|
colors.cpp
|
|
evdevpaddle.cpp
|
|
nframe.cpp
|
|
asciiart.cpp
|
|
)
|
|
|
|
set(HEADER_FILES
|
|
world.h
|
|
colors.h
|
|
evdevpaddle.h
|
|
nframe.h
|
|
asciiart.h
|
|
)
|
|
|
|
add_executable(applen
|
|
${SOURCE_FILES}
|
|
${HEADER_FILES}
|
|
)
|
|
|
|
pkg_search_module(NCURSESW REQUIRED ncursesw)
|
|
pkg_search_module(LIBEVDEV REQUIRED libevdev)
|
|
|
|
target_include_directories(applen PRIVATE
|
|
${NCURSESW_INCLUDE_DIRS}
|
|
${LIBEVDEV_INCLUDE_DIRS}
|
|
${Boost_INCLUDE_DIRS}
|
|
)
|
|
|
|
target_compile_options(applen PRIVATE
|
|
${NCURSESW_CFLAGS_OTHER}
|
|
${LIBEVDEV_CFLAGS_OTHER}
|
|
)
|
|
|
|
target_link_libraries(applen PRIVATE
|
|
${NCURSESW_LIBRARIES}
|
|
${LIBEVDEV_LIBRARIES}
|
|
appleii
|
|
common2
|
|
)
|
|
|
|
install(TARGETS applen
|
|
DESTINATION bin)
|