diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1913ce6a..4c89eeea 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -18,10 +18,10 @@ if (NOT TARGET chopper_shared) target_compile_options (chopper_shared PUBLIC "-pedantic" "-Wall" "-Wextra") endif () -add_library (chopper_lib INTERFACE) -target_link_libraries (chopper_lib INTERFACE chopper_layout chopper_sketch) +add_library (chopper_lib STATIC set_up_parser.cpp) +target_link_libraries (chopper_lib PUBLIC chopper_layout chopper_sketch) -add_executable (chopper chopper.cpp set_up_parser.cpp) +add_executable (chopper chopper.cpp) target_link_libraries (chopper PUBLIC chopper_lib) add_subdirectory (layout)