File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
10
10
set (CMAKE_CXX_EXTENSIONS OFF )
11
11
12
12
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME )
13
- enable_testing ()
13
+ enable_testing ()
14
14
endif ()
15
15
16
16
# Used to have a good display look in IDE
@@ -23,15 +23,15 @@ FetchContent_Declare(SFML
23
23
GIT_TAG 2.6.x)
24
24
FetchContent_MakeAvailable(SFML)
25
25
26
- if (EXISTS src)
27
- add_subdirectory (src)
28
- endif ()
26
+ add_subdirectory (src)
29
27
30
- if (EXISTS tests)
28
+ if (EXISTS " ${CMAKE_SOURCE_DIR} / tests" )
31
29
add_subdirectory (tests)
32
30
endif ()
33
- if (EXISTS examples)
31
+ if (EXISTS " ${CMAKE_SOURCE_DIR} / examples" )
34
32
add_subdirectory (examples)
35
33
endif ()
36
34
37
- set_property (DIRECTORY PROPERTY VS_STARTUP_PROJECT 3DSceneExample)
35
+ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME )
36
+ set_property (DIRECTORY PROPERTY VS_STARTUP_PROJECT 3DSceneExample)
37
+ endif ()
You can’t perform that action at this time.
0 commit comments