Skip to content

Commit

Permalink
Swap out submodules for CPM
Browse files Browse the repository at this point in the history
  • Loading branch information
Auburn committed Jul 26, 2021
1 parent ecfd618 commit ae6e9b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ cmake_minimum_required(VERSION 3.7.1)
project(FastNoise2 VERSION 0.8.2)
set(CMAKE_CXX_STANDARD 17)

option(FASTNOISE2_NOISETOOL "Build Noise Tool" ON)
option(FASTNOISE2_TESTS "Build Test" OFF)
option(FASTNOISE2_NOISETOOL "Build NoiseTool application" ON)
option(FASTNOISE2_TESTS "Build tests" OFF)


if(MSVC)
#setup pdb target location
Expand All @@ -26,10 +27,12 @@ set(install_targets "")
add_subdirectory(src)

if(FASTNOISE2_NOISETOOL)
include(cmake/CPM.cmake)
add_subdirectory(NoiseTool)
endif()

if(FASTNOISE2_TESTS)
include(cmake/CPM.cmake)
add_subdirectory(tests)
endif()

Expand Down

0 comments on commit ae6e9b6

Please sign in to comment.