Skip to content

Commit

Permalink
Cmake tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Caerind committed Aug 19, 2024
1 parent e538103 commit 433600e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
set(CMAKE_CXX_EXTENSIONS OFF)

if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
enable_testing()
enable_testing()
endif()

# Used to have a good display look in IDE
Expand All @@ -23,15 +23,15 @@ FetchContent_Declare(SFML
GIT_TAG 2.6.x)
FetchContent_MakeAvailable(SFML)

if(EXISTS src)
add_subdirectory(src)
endif()
add_subdirectory(src)

if(EXISTS tests)
if(EXISTS "${CMAKE_SOURCE_DIR}/tests")
add_subdirectory(tests)
endif()
if(EXISTS examples)
if(EXISTS "${CMAKE_SOURCE_DIR}/examples")
add_subdirectory(examples)
endif()

set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT 3DSceneExample)
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT 3DSceneExample)
endif()

0 comments on commit 433600e

Please sign in to comment.