mirror of
https://github.com/loimu/zeit.git
synced 2025-09-15 12:58:44 +08:00
62 lines
1.6 KiB
CMake
62 lines
1.6 KiB
CMake
set(crontablib_SRCS
|
|
cthost.cpp
|
|
ctcron.cpp
|
|
ctmonth.cpp
|
|
ctminute.cpp
|
|
cthour.cpp
|
|
ctdom.cpp
|
|
ctdow.cpp
|
|
cttask.cpp
|
|
ctunit.cpp
|
|
ctvariable.cpp
|
|
ctGlobalCron.cpp
|
|
ctSystemCron.cpp
|
|
ctInitializationError.cpp
|
|
ctSaveStatus.cpp
|
|
ctHelper.cpp
|
|
)
|
|
|
|
set(crontablib_HDRS
|
|
cthost.h
|
|
ctcron.h
|
|
ctmonth.h
|
|
ctminute.h
|
|
cthour.h
|
|
ctdom.h
|
|
ctdow.h
|
|
cttask.h
|
|
ctunit.h
|
|
ctvariable.h
|
|
ctGlobalCron.h
|
|
ctSystemCron.h
|
|
ctInitializationError.h
|
|
ctSaveStatus.h
|
|
ctHelper.h
|
|
)
|
|
|
|
add_library(crontab SHARED ${crontablib_SRCS})
|
|
|
|
if(WITH_QT6)
|
|
target_link_libraries(crontab Qt6::Core Qt6::Gui)
|
|
target_include_directories(crontab PRIVATE Qt6::Core Qt6::Gui
|
|
${CMAKE_CURRENT_BINARY_DIR}/../src)
|
|
if(BUILD_HELPER)
|
|
target_link_libraries(crontab KF6::AuthCore)
|
|
target_include_directories(crontab PRIVATE KF6::Auth KF6::CoreAddons)
|
|
endif()
|
|
else()
|
|
target_link_libraries(crontab Qt5::Core Qt5::Gui)
|
|
target_include_directories(crontab PRIVATE Qt5::Core Qt5::Gui
|
|
${CMAKE_CURRENT_BINARY_DIR}/../src)
|
|
if(BUILD_HELPER)
|
|
target_link_libraries(crontab KF5::AuthCore)
|
|
target_include_directories(crontab PRIVATE KF5::Auth KF5::CoreAddons)
|
|
endif()
|
|
endif()
|
|
|
|
target_compile_features(crontab PRIVATE cxx_lambdas cxx_nullptr cxx_unicode_literals)
|
|
set_target_properties(crontab PROPERTIES VERSION ${CRONTAB_V} SOVERSION ${VERSION_MAJOR})
|
|
|
|
install(FILES ${crontablib_HDRS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/crontablib/)
|
|
install(TARGETS crontab LIBRARY DESTINATION lib)
|