mirror of https://github.com/cutefishos/appmotor
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
528 B
CMake
22 lines
528 B
CMake
# Set sources
|
|
set(SRC launcher.c)
|
|
|
|
# Set include dirs
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_HOME_DIRECTORY}/src/common)
|
|
|
|
# Set C flags
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
|
|
|
|
# Set precompiler flags
|
|
add_definitions(-DLIBRARIES_CONFIG_FILE="/etc/applauncherd.conf")
|
|
add_definitions(-DLAUNCHER_LIBRARY="/usr/lib/applauncherd/libapplauncherd.so")
|
|
|
|
link_libraries(${LIBDL})
|
|
|
|
# Set target
|
|
add_executable(applauncherd.bin ${SRC})
|
|
|
|
# Add install rule
|
|
install(PROGRAMS applauncherd.bin DESTINATION /usr/bin/)
|
|
|