Skip to content
Snippets Groups Projects
CMakeLists.txt 741 B
Newer Older
  • Learn to ignore specific revisions
  • # CMakeList.txt : CMake project for Cpp, include source and define
    # project specific logic here.
    #
    cmake_minimum_required (VERSION 3.20)
    
    # Enable Hot Reload for MSVC compilers if supported.
    if (POLICY CMP0141)
      cmake_policy(SET CMP0141 NEW)
      set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
    endif()
    
    set(CMAKE_CXX_STANDARD 20)
    
    
    xiyehu2's avatar
    xiyehu2 committed
    # add libraries
    
    add_library(wfmLib "")
    add_library(AWGLib "")
    add_subdirectory(lib)
    
    # include_directories(lib/driver_header)
    
    
    set(LIBS
        wfmLib
        AWGLib
    )
    
    xiyehu2's avatar
    xiyehu2 committed
    
    # main.exe
    project ("main")
    add_executable(main run.cpp)
    target_link_libraries(main ${LIBS})