Advertisement
junghu1124

Untitled

Sep 19th, 2023
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.44 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.26)
  2. project(day2)
  3.  
  4. set(CMAKE_CXX_STANDARD 17)
  5.  
  6. set(CMAKE_CURRENT_SOURCE_DIR ${PROJECT_SOURCE_DIR})
  7. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
  8.  
  9. include_directories(${PROJECT_SOURCE_DIR}/ext/include)
  10.  
  11. add_executable(
  12.         day2
  13.         main.cpp
  14. )
  15.  
  16. target_link_libraries(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/ext/lib/Week03_Dynamic.a)
  17.  
  18. set(CMAKE_EXE_LINKER_FLAGS "-static")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement