nanogui-experiments/CMakeLists.txt

20 lines
587 B
CMake

cmake_minimum_required(VERSION 3.13)
project(nanogui_helloworld)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(NANOGUI_BUILD_EXAMPLES OFF)
set(NANOGUI_BUILD_PYTHON OFF)
set(NANOGUI_BUILD_SHARED OFF)
add_subdirectory(lib/nanogui)
include_directories(lib/nanogui/include)
include_directories(${NANOGUI_EXTRA_INCS})
add_definitions(${NANOGUI_EXTRA_DEFS})
set_property(TARGET glfw glfw_objects nanogui PROPERTY FOLDER "dependencies")
add_executable(nanogui_helloworld nanogui_helloworld.cpp)
target_link_libraries(nanogui_helloworld nanogui ${NANOGUI_EXTRA_LIBS})