SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g") if (USE_RIPCON_LOGGER) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_RIPCON_LOGGER") endif (USE_RIPCON_LOGGER) SET(SRC_FIlES jswm.c ${PROJECT_SOURCE_DIR}/include/jswm_util.h jswm_ctl.c jswm_ctl.h jswm_log.c ) add_executable(jswm ${SRC_FIlES}) target_include_directories(jswm PUBLIC ${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/libjswm ${PROJECT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}) target_link_libraries(jswm PUBLIC ilmControl) target_link_libraries(jswm PUBLIC ilmCommon) target_link_libraries(jswm PUBLIC ilmInput) target_link_libraries(jswm PUBLIC pthread) target_link_libraries(jswm PUBLIC json-c) target_link_libraries(jswm PUBLIC jslist) target_link_libraries(jswm PUBLIC ipcon) target_link_libraries(jswm PUBLIC libjswm) install(TARGETS jswm DESTINATION ${CMAKE_INSTALL_BINDIR}) install(FILES ${PROJECT_SOURCE_DIR}/sample_settings/sample.json DESTINATION ${CMAKE_INSTALL_SYSCONFDIR} RENAME ${JSWM_CONFIG_FILE_NAME})