Skip to content

Commit

Permalink
Move the executable into app directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mwjin committed May 15, 2023
1 parent e6bdeeb commit 7706769
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ set(CMAKE_CXX_STANDARD 17)
include(CTest)
enable_testing()

add_subdirectory(app)
add_subdirectory(lib)
add_executable(your_project main.cc)
target_link_libraries(your_project shape)
target_compile_options(your_project PUBLIC -Wall -Werror)

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
Expand Down
7 changes: 7 additions & 0 deletions app/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
file(GLOB_RECURSE SRC_FILES CONFIGURE_DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/*.cc
)

add_executable(your_project ${SRC_FILES})
target_link_libraries(your_project shape)
target_compile_options(your_project PUBLIC -Wall -Werror)
File renamed without changes.

0 comments on commit 7706769

Please sign in to comment.