You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
515 B
CMake
27 lines
515 B
CMake
|
1 month ago
|
project(SurfaceGridExample CXX)
|
||
|
|
|
||
|
|
set(CMAKE_CXX_STANDARD 17)
|
||
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||
|
|
|
||
|
|
if (UNIX)
|
||
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
|
||
|
|
endif()
|
||
|
|
|
||
|
|
file(GLOB_RECURSE SRCS "*.h" "*.cpp")
|
||
|
|
|
||
|
|
add_executable(SurfaceGridExample ${SRCS})
|
||
|
|
|
||
|
|
include_directories(
|
||
|
|
"${CMAKE_SOURCE_DIR}/**"
|
||
|
|
"${CMAKE_SOURCE_DIR}/lib"
|
||
|
|
)
|
||
|
|
|
||
|
|
link_directories(
|
||
|
|
"${CMAKE_SOURCE_DIR}/build/lib"
|
||
|
|
)
|
||
|
|
|
||
|
|
target_link_libraries(
|
||
|
|
SurfaceGridExample sg
|
||
|
|
)
|
||
|
|
|
||
|
|
install(TARGETS SurfaceGridExample DESTINATION "${CMAKE_SOURCE_DIR}/output")
|