[cmake] Disable tools by default but enable in CI

pull/3/head
Hleb Valoshka 2019-05-05 15:12:43 +03:00
parent 407e669747
commit a968fadb5f
4 changed files with 10 additions and 6 deletions

View File

@ -62,7 +62,7 @@ build_script:
cd build
cmake -DCMAKE_PREFIX_PATH=%Qt5_DIR% -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DENABLE_SPICE=ON ..
cmake -DCMAKE_PREFIX_PATH=%Qt5_DIR% -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DENABLE_SPICE=ON -DENABLE_TOOLS=ON ..
cmake --build . --config Release -- /maxcpucount:4 /nologo

View File

@ -34,7 +34,7 @@ before_script:
- cd build
script:
- cmake -DENABLE_SPICE=ON ..
- cmake -DENABLE_SPICE=ON -DENABLE_TOOLS=ON ..
- make -j $(nproc || echo 4)
addons:

View File

@ -28,6 +28,7 @@ option(ENABLE_GTK "Build GTK2 frontend (Unix only)? (Default: off)" OFF)
option(ENABLE_QT "Build Qt frontend? (Default: on)" ON)
option(ENABLE_WIN "Build Windows native frontend? (Default: on)" ON)
option(ENABLE_THEORA "Support video capture to OGG Theora? (Default: on)" ON)
option(ENABLE_TOOLS "Build different tools? (Default: off)" OFF)
option(NATIVE_OSX_APP "Support native OSX paths read data from (Default: off)" OFF)
if(NOT CMAKE_BUILD_TYPE)

View File

@ -9,11 +9,14 @@ set(CELESTIA_LIBS
celutil
)
foreach(lib ${CELESTIA_LIBS} tools)
foreach(lib ${CELESTIA_LIBS})
add_subdirectory(${lib})
endforeach()
if (NOT WIN32)
add_executable(buildstardb buildstardb.cpp)
cotire(buildstardb)
if (ENABLE_TOOLS)
add_subdirectory(tools)
if (NOT WIN32)
add_executable(buildstardb buildstardb.cpp)
cotire(buildstardb)
endif()
endif()