Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
7e59a499
Commit
7e59a499
authored
Feb 21, 2010
by
cornimueller
Browse files
[FIX] Now make won't recompile every file if you turn tests on or off.
parent
35724d0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
src/CMakeLists.txt
src/CMakeLists.txt
+11
-9
No files found.
src/CMakeLists.txt
View file @
7e59a499
...
...
@@ -42,18 +42,20 @@ FIND_PACKAGE( OpenGL REQUIRED )
FIND_PACKAGE
(
CxxTest QUIET
)
MARK_AS_ADVANCED
(
CXXTEST_PERL_TESTGEN_EXECUTABLE
)
OPTION
(
OW_USE_TESTS
"This enables compilation of tests"
ON
)
IF
(
CXXTEST_FOUND AND OW_USE_TESTS
)
#We need this variable because this is tested more often.
SET
(
OW_COMPILE_TESTS ON
)
IF
(
CXXTEST_FOUND
)
INCLUDE_DIRECTORIES
(
${
CXXTEST_INCLUDE_DIR
}
)
IF
(
OW_USE_TESTS
)
SET
(
OW_COMPILE_TESTS ON
)
#We need this variable because this is tested more often.
# Package settings:
SET
(
CXXTEST_USE_PYTHON 1
)
# Activate CTest and "test" target
ENABLE_TESTING
()
ELSE
()
SET
(
OW_COMPILE_TESTS OFF
)
ENDIF
()
ELSE
()
SET
(
OW_COMPILE_TESTS OFF
)
ENDIF
()
IF
(
OW_COMPILE_TESTS
)
INCLUDE_DIRECTORIES
(
${
CXXTEST_INCLUDE_DIR
}
)
# Package settings:
SET
(
CXXTEST_USE_PYTHON 1
)
# Activate CTest and "test" target
ENABLE_TESTING
()
ENDIF
(
OW_COMPILE_TESTS
)
### OpenSceneGraph ###
SET
(
MIN_OSG_VERSION 2.8.0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment