Skip to content

Commit

Permalink
better main/CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed Jan 29, 2019
1 parent dc77129 commit a1e0215
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ project(${project_name})

set(CMAKE_CXX_STANDARD 11)

include_directories(src)

add_library(${project_name}-lib
src/AppComponent.hpp
src/Logger.hpp
Expand All @@ -25,6 +23,8 @@ target_link_libraries(${project_name}-lib
PUBLIC oatpp::oatpp-test
)

target_include_directories(${project_name}-lib PUBLIC src)

## add executables

add_executable(${project_name}-exe
Expand All @@ -43,5 +43,4 @@ set_target_properties(${project_name}-lib ${project_name}-exe ${project_name}-te
CXX_STANDARD 11
CXX_EXTENSIONS OFF
CXX_STANDARD_REQUIRED ON
LINKER_LANGUAGE CXX
)

0 comments on commit a1e0215

Please sign in to comment.