diff --git a/CMakeLists.txt b/CMakeLists.txt index 48d40c1..c3b2d91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,11 +78,11 @@ if(BUILD_REXLEDCTL) add_executable (rexledctl src/rexbacklight.c) add_dependencies(rexledctl common_srcs) #force common_srcs to be built first target_compile_definitions(rexledctl PRIVATE REXLEDCTL) #define REXLEDCTL in C files + target_link_libraries(rexledctl PRIVATE $) #link with the common_srcs "library" if(ENABLE_RESTORE_FILE) target_link_libraries(rexledctl PRIVATE "${RJP_LIB}") #link with rjp target_include_directories(rexledctl PUBLIC "${RJP_HEADER_DIR}") #include rjp.h directory endif() - target_link_libraries(rexledctl PRIVATE $) #link with the common_srcs "library" install(TARGETS rexledctl RUNTIME DESTINATION bin) if(INSTALL_UDEV_LED_RULE) install(FILES ${CMAKE_SOURCE_DIR}/rules/91-leds.rules DESTINATION ${UDEV_DIR})