Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bill Lorensen
VTK
Commits
20b398c7
Commit
20b398c7
authored
Feb 22, 2012
by
George Zagaris
Browse files
STYLE: Change CMake commands to upper-case
Change-Id: I97dd82d56ceb0e12f462537214c06b3890e6cc99
parent
eaaadf44
Changes
2
Hide whitespace changes
Inline
Side-by-side
AMR/Testing/CMakeLists.txt
View file @
20b398c7
add_subdirectory
(
Cxx
)
ADD_SUBDIRECTORY
(
Cxx
)
IF
(
PYTHON_EXECUTABLE
)
ADD_TEST
(
HeaderTesting-AMR
${
PYTHON_EXECUTABLE
}
...
...
AMR/Testing/Cxx/CMakeLists.txt
View file @
20b398c7
## Set the name of the KIT being tested
set
(
KIT AMR
)
SET
(
KIT AMR
)
## List all test sources
set
(
MyTests
SET
(
MyTests
TestFlashReader.cxx
TestEnzoReader.cxx
)
## Create test source list
create_test_sourcelist
(
Tests
${
KIT
}
CxxTests.cxx
CREATE_TEST_SOURCELIST
(
Tests
${
KIT
}
CxxTests.cxx
${
MyTests
}
EXTRA_INCLUDE vtkTestDriver.h
)
add_executable
(
${
KIT
}
CxxTests
${
Tests
}
)
target_link_libraries
(
${
KIT
}
CxxTests vtkAMR vtkFiltering vtkParallel
)
ADD_EXECUTABLE
(
${
KIT
}
CxxTests
${
Tests
}
)
TARGET_LINK_LIBRARIES
(
${
KIT
}
CxxTests vtkAMR vtkFiltering vtkParallel
)
set
(
TestsToRun
${
MyTests
}
)
## Add all executables
foreach
(
test
${
MyTests
}
)
get_filename_component
(
t
${
test
}
NAME_WE
)
add_test
(
${
t
}
${
CXX_TEST_PATH
}
/
${
KIT
}
CxxTests
${
t
}
)
endforeach
(
test
)
\ No newline at end of file
FOREACH
(
test
${
MyTests
}
)
GET_FILENAME_COMPONENT
(
t
${
test
}
NAME_WE
)
ADD_TEST
(
${
t
}
${
CXX_TEST_PATH
}
/
${
KIT
}
CxxTests
${
t
}
)
ENDFOREACH
(
test
)
\ No newline at end of file
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