Files
CMakeExample/app/CMakeLists.txt
2025-07-15 07:41:45 +02:00

8 lines
248 B
CMake

set(MY_EXE "app")
add_executable(${MY_EXE} "src/main.cpp")
target_link_libraries(${MY_EXE} "moduleA" "moduleB" "moduleC")
# no need to include directories, because they are included automatically
# thanks to exposing the directories using PUBLIC