diff --git a/CMakeLists.txt b/CMakeLists.txt index 544e868bb8d4a4637b25948b6dea820c88b08364..6690a6e7a22bfa6171d70c484963c4e22f5b0344 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,8 +29,7 @@ endif() #------------# # Build type # #------------# -# Default: Release -# Others: None, Debug +# Release / None / Debug if (NOT CMAKE_BUILD_TYPE) set (CMAKE_BUILD_TYPE RELEASE CACHE STRING "Choose the type of build, options are: None Debug Release." diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e721942eb0818e65ee6f6cfc38870ea102786fdd..3f8fecbff42393edc08577591db4d0d38874b4cf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -23,13 +23,18 @@ if ("${BUILD_LIB}" STREQUAL "yes") Solvers/DESolver.cpp ) - target_link_libraries(lib4neuro PUBLIC ${Boost_LIBRARIES}) + target_link_libraries( + lib4neuro + + PRIVATE + ${Boost_LIBRARIES} + ) + target_include_directories( lib4neuro PUBLIC ${ROOT_DIR}/include -# ${SRC_DIR} PRIVATE ${SRC_DIR}