fourier/CMakeLists.txt
parovoz 4a5fb9c6c6
Some checks failed
CMake on a single platform / build (push) Failing after 17s
fcgi
2025-02-24 20:50:52 +04:00

49 lines
1001 B
CMake

cmake_minimum_required(VERSION 3.5)
project(fourier LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Wt REQUIRED
Wt
FCGI
)
include(GNUInstallDirs)
include_directories("src")
add_executable(${PROJECT_NAME}
src/main.cpp
src/MyApplication.h
src/MyApplication.cpp
)
target_link_libraries(${PROJECT_NAME}
Wt::Wt
Wt::FCGI
)
# configure_file(
# run.sh.in
# ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.wt
# )
install( TARGETS ${PROJECT_NAME}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
# install( FILES wt_config.xml DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/${PROJECT_NAME})
# install(
# FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.wt
# DESTINATION ${CMAKE_INSTALL_BINDIR}
# PERMISSIONS
# OWNER_READ OWNER_WRITE OWNER_EXECUTE
# GROUP_READ GROUP_EXECUTE
# WORLD_READ WORLD_EXECUTE
# )