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 # )