cmake_minimum_required(VERSION 3.6)

project(Voronota)

file(GLOB VORONOTA_SRC "${PROJECT_SOURCE_DIR}/src/voronota.cpp" "${PROJECT_SOURCE_DIR}/src/modes/*.cpp")

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_BUILD_TYPE Release)

add_executable(voronota ${VORONOTA_SRC})

install(TARGETS voronota RUNTIME DESTINATION bin)
install(PROGRAMS voronota-cadscore voronota-contacts voronota-resources voronota-voromqa voronota-volumes voronota-pocket voronota-membrane DESTINATION bin)

if(EXPANSION_GL)
    add_subdirectory(expansion_gl)
endif(EXPANSION_GL)

if(EXPANSION_JS)
    add_subdirectory(expansion_js)
endif(EXPANSION_JS)

if(EXPANSION_LT)
    add_subdirectory(expansion_lt)
endif(EXPANSION_LT)
