Skip to content

Commit 9ca2c4b

Browse files
committed
fix(CMake): simplify "add_geode_library" call
1 parent cc82968 commit 9ca2c4b

File tree

2 files changed

+11
-32
lines changed

2 files changed

+11
-32
lines changed

CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,17 @@ find_package(OpenGeode REQUIRED)
3030

3131
#------------------------------------------------------------------------------------------------
3232
# Configure the MyModule libraries
33-
add_subdirectory(src/mylib)
33+
add_geode_library(
34+
NAME mylib
35+
FOLDER "mylib"
36+
SOURCES
37+
"common.cpp"
38+
"hello_world.cpp"
39+
PUBLIC_HEADERS
40+
"hello_world.h"
41+
PRIVATE_DEPENDENCIES
42+
OpenGeode::basic
43+
)
3444

3545
#------------------------------------------------------------------------------------------------
3646
# Optional modules configuration

src/mylib/CMakeLists.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)