2014-12-21 21:54:02 +01:00
|
|
|
set(POCO_EXENAME "PageCompiler")
|
|
|
|
|
|
|
|
# Sources
|
|
|
|
file(GLOB SRCS_G "src/*.cpp")
|
2020-02-14 11:07:32 +01:00
|
|
|
POCO_SOURCES_AUTO(SRCS ${SRCS_G})
|
2014-12-21 21:54:02 +01:00
|
|
|
|
2021-06-26 10:12:20 +02:00
|
|
|
# Version Resource
|
|
|
|
if(MSVC)
|
|
|
|
source_group("Resources" FILES ${PROJECT_SOURCE_DIR}/DLLVersion.rc)
|
|
|
|
list(APPEND SRCS ${PROJECT_SOURCE_DIR}/DLLVersion.rc)
|
|
|
|
endif()
|
|
|
|
|
2020-02-14 11:07:32 +01:00
|
|
|
add_executable(PageCompiler ${SRCS})
|
2018-06-03 18:17:50 +02:00
|
|
|
set_target_properties(PageCompiler
|
2020-02-14 11:07:32 +01:00
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME cpspc
|
|
|
|
)
|
2014-12-21 21:54:02 +01:00
|
|
|
|
2018-06-03 18:17:50 +02:00
|
|
|
target_link_libraries(PageCompiler PUBLIC Poco::Net Poco::Util)
|
2014-12-21 21:54:02 +01:00
|
|
|
|
|
|
|
install(
|
2018-06-03 18:17:50 +02:00
|
|
|
TARGETS PageCompiler EXPORT PageCompilerTargets
|
2023-10-20 17:21:13 +02:00
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
2020-02-14 11:07:32 +01:00
|
|
|
)
|