mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-09 11:17:31 +01:00
19d1657feb
Added the find_packages directive in the right place now.
26 lines
622 B
CMake
26 lines
622 B
CMake
set(POCO_EXENAME "PageCompiler")
|
|
|
|
# Sources
|
|
file(GLOB SRCS_G "src/*.cpp")
|
|
POCO_SOURCES_AUTO( SRCS ${SRCS_G})
|
|
|
|
add_executable( "${POCO_EXENAME}" ${SRCS} )
|
|
set_target_properties( "${POCO_EXENAME}"
|
|
PROPERTIES
|
|
OUTPUT_NAME cpspc
|
|
)
|
|
|
|
target_link_libraries( "${POCO_EXENAME}" ${CMAKE_THREAD_LIBS_INIT} Net Util XML JSON Foundation)
|
|
|
|
install(
|
|
TARGETS "${POCO_EXENAME}" EXPORT "${POCO_EXENAME}Targets"
|
|
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
|
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
|
RUNTIME DESTINATION bin
|
|
INCLUDES DESTINATION include
|
|
)
|
|
if (ENABLE_SAMPLES)
|
|
# add_subdirectory(samples)
|
|
endif ()
|
|
|