File tree Expand file tree Collapse file tree 4 files changed +17
-18
lines changed Expand file tree Collapse file tree 4 files changed +17
-18
lines changed Original file line number Diff line number Diff line change 18
18
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
19
# SOFTWARE.
20
20
21
- cmake_minimum_required (VERSION 3.7.2 )
21
+ cmake_minimum_required (VERSION 3.11 )
22
22
23
23
# Define the project
24
24
project (MyModule CXX )
@@ -28,11 +28,9 @@ option(MYMODULE_WITH_TESTS "Compile test projects" ON)
28
28
# Get MyModule dependencies
29
29
find_package (OpenGeode REQUIRED )
30
30
31
- copy_windows_binaries (OpenGeode::basic )
32
-
33
31
#------------------------------------------------------------------------------------------------
34
32
# Configure the MyModule libraries
35
- add_geode_library ( mylib )
33
+ add_subdirectory ( src/ mylib )
36
34
37
35
#------------------------------------------------------------------------------------------------
38
36
# Optional modules configuration
Original file line number Diff line number Diff line change 18
18
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
19
# SOFTWARE.
20
20
21
- set (sources
22
- "${lib_source_dir} /hello_world.cpp"
23
- )
24
- set (public_headers
25
- "${lib_include_dir} /hello_world.h"
26
- )
27
- target_link_libraries (${target_name}
28
- PRIVATE
21
+ add_geode_library (
22
+ NAME mylib
23
+ FOLDER "mylib"
24
+ SOURCES
25
+ "common.cpp"
26
+ "hello_world.cpp"
27
+ PUBLIC_HEADERS
28
+ "hello_world.h"
29
+ PRIVATE_DEPENDENCIES
29
30
OpenGeode::basic
30
31
)
Original file line number Diff line number Diff line change 18
18
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
19
# SOFTWARE.
20
20
21
- cmake_minimum_required (VERSION 3.7.2 )
21
+ cmake_minimum_required (VERSION 3.11 )
22
22
23
23
if (NOT TARGET MyModule::mylib )
24
24
project (MyModule CXX )
@@ -27,7 +27,5 @@ if(NOT TARGET MyModule::mylib)
27
27
enable_testing ()
28
28
endif ()
29
29
30
- set (CTEST_OUTPUT_ON_FAILURE ON )
31
-
32
30
add_subdirectory (mylib )
33
31
Original file line number Diff line number Diff line change 18
18
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
19
# SOFTWARE.
20
20
21
- add_geode_test (test -hello-world.cpp
22
- ${PROJECT_NAME} ::mylib
23
- OpenGeode::basic
21
+ add_geode_test (
22
+ SOURCE "test-hello-world.cpp"
23
+ DEPENDENCIES
24
+ OpenGeode::basic
25
+ ${PROJECT_NAME} ::mylib
24
26
)
You can’t perform that action at this time.
0 commit comments