Skip to content

Commit 04c46fd

Browse files
committed
examples : always compile GenHeightfield.cpp for ExamplesCommon target
1 parent 547eaad commit 04c46fd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

examples/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
find_package(CLI11 CONFIG REQUIRED)
22

3-
add_library(ExamplesCommon STATIC lib/Common.cpp lib/PerlinNoise.cpp)
3+
add_library(
4+
ExamplesCommon
5+
STATIC
6+
lib/Common.cpp
7+
lib/PerlinNoise.cpp
8+
lib/GenHeightfield.cpp
9+
)
410
target_link_libraries(ExamplesCommon PUBLIC candlewick_core imgui_headers)
511
target_include_directories(
612
ExamplesCommon
@@ -9,7 +15,6 @@ target_include_directories(
915

1016
if(BUILD_PINOCCHIO_VISUALIZER)
1117
find_package(example-robot-data REQUIRED)
12-
target_sources(ExamplesCommon PRIVATE lib/GenHeightfield.cpp)
1318
target_link_libraries(
1419
ExamplesCommon
1520
PUBLIC

0 commit comments

Comments
 (0)