2014-12-21 21:54:02 +01:00
|
|
|
# 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(File2Page ${SRCS})
|
2018-06-03 18:17:50 +02:00
|
|
|
set_target_properties(File2Page
|
2020-02-14 11:07:32 +01:00
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME f2cpsp
|
|
|
|
)
|
2014-12-21 21:54:02 +01:00
|
|
|
|
2018-06-03 18:17:50 +02:00
|
|
|
target_link_libraries(File2Page PUBLIC Poco::Util)
|
2014-12-21 21:54:02 +01:00
|
|
|
|
|
|
|
install(
|
2018-06-03 18:17:50 +02:00
|
|
|
TARGETS File2Page EXPORT File2PageTargets
|
2020-02-14 11:07:32 +01:00
|
|
|
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
|
|
|
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
INCLUDES DESTINATION include
|
|
|
|
)
|