Skip to content

Commit

Permalink
only build tests for top-level project
Browse files Browse the repository at this point in the history
  • Loading branch information
visrealm committed Sep 16, 2023
1 parent 231e88d commit a43f2a9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,17 @@ project(vrEmuLcd)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/)

if (PROJECT_IS_TOP_LEVEL)
if(MSVC)
add_compile_options(/W4 /WX)
else()
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
add_compile_options(-march=native)
endif()
if(MSVC)
add_compile_options(/W4 /WX)
else()
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
add_compile_options(-march=native)
endif()

include(CTest)

add_subdirectory(src)

if (NOT DEFINED EMSCRIPTEN)
add_subdirectory(test)
if (PROJECT_IS_TOP_LEVEL)
add_subdirectory(test)
endif()

0 comments on commit a43f2a9

Please sign in to comment.