Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Oct 14, 2023
1 parent 9753bbe commit af4942d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ message(DEBUG "CMAKE_PROJECT_VERSION: ${CMAKE_PROJECT_VERSION}")

option(TACTILE_BUILD_APP_BUNDLE "Build the editor as a macOS application bundle (.app)" OFF)
option(TACTILE_BUILD_TESTS "Build the test suite" OFF)
option(TACTILE_BUILD_LEGACY "Build the legacy targets" OFF)
option(TACTILE_USE_SANITIZERS "Enable runtime sanitizers" OFF)
option(TACTILE_USE_LTO "Enable link-time optimizations" OFF)

message(DEBUG "TACTILE_BUILD_APP_BUNDLE: ${TACTILE_BUILD_APP_BUNDLE}")
message(DEBUG "TACTILE_BUILD_TESTS: ${TACTILE_BUILD_TESTS}")
message(DEBUG "TACTILE_BUILD_LEGACY: ${TACTILE_BUILD_LEGACY}")
message(DEBUG "TACTILE_USE_SANITIZERS: ${TACTILE_USE_SANITIZERS}")
message(DEBUG "TACTILE_USE_LTO: ${TACTILE_USE_LTO}")

Expand Down Expand Up @@ -84,9 +86,12 @@ find_path(STB_INCLUDE_DIRS "stb_c_lexer.h")
add_subdirectory(modules)

add_subdirectory(source/proto)
add_subdirectory(source/lib)
add_subdirectory(source/app)

if (TACTILE_BUILD_TESTS MATCHES ON)
add_subdirectory(test)
if (TACTILE_BUILD_LEGACY MATCHES ON)
add_subdirectory(source/lib)
add_subdirectory(source/app)

if (TACTILE_BUILD_TESTS MATCHES ON)
add_subdirectory(test)
endif ()
endif ()

0 comments on commit af4942d

Please sign in to comment.