19 lines
498 B
CMake
19 lines
498 B
CMake
include(GNUInstallDirs)
|
|
|
|
# configure_file("fs-compat.hpp.in" "fs-compat.hpp" @ONLY)
|
|
|
|
add_executable(${PROJECT_NAME})
|
|
|
|
file(GLOB_RECURSE sources *.cpp)
|
|
file(GLOB_RECURSE headers *.hpp)
|
|
target_sources(${PROJECT_NAME}
|
|
PRIVATE "${sources}" "${headers}" "${${PROJECT_NAME}_views}")
|
|
unset(sources)
|
|
unset(headers)
|
|
|
|
# target_include_directories(${PROJECT_NAME}
|
|
# PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>")
|
|
|
|
install(TARGETS ${PROJECT_NAME}
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|