Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions linkingALibrary/CmakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 3.13)

add_subdirectory("thirdParty/profilerLib")


project(main1)
set(CMAKE_CXX_STANDARD 17)

add_subdirectory("thirdParty/profilerLib")
add_executable(main1 "src/main.cpp")

target_include_directories(main1 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include/")
target_link_libraries(main1 PRIVATE profilerLib)
7 changes: 3 additions & 4 deletions moreCompleteExample/CmakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ cmake_minimum_required(VERSION 3.13)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Release>:Release>")

add_subdirectory("thirdParty/profilerLib")
add_subdirectory("thirdParty/safeSave")


project(main1)
set(CMAKE_CXX_STANDARD 17)

add_subdirectory("thirdParty/profilerLib")
add_subdirectory("thirdParty/safeSave")

# we define MY_SOURCES to be a list of all the source files for my project
file(GLOB_RECURSE MY_SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")

Expand Down