您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CMakeLists.txt 573B

12345678910111213141516171819
  1. include_directories(.)
  2. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -ggdb -g3")
  3. include_directories(. ../src)
  4. set(SOURCE_FILES
  5. main.cpp
  6. Interface/MainClass.cpp
  7. Interface/MainClass.h
  8. Interface/CommandLineParser.cpp
  9. Interface/CommandLineParser.h
  10. DBO/CommandLineOption.cpp
  11. DBO/CommandLineOption.h
  12. )
  13. set(LIBS ${LIBS} ${PROJECT_NAME})
  14. add_executable(${PROJECT_NAME}-cli ${SOURCE_FILES})
  15. target_link_libraries(${PROJECT_NAME}-cli ${LIBS})
  16. install(TARGETS ${PROJECT_NAME}-cli
  17. RUNTIME DESTINATION bin)