File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed
Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.4 )
1+ cmake_minimum_required (VERSION 3.5 )
22enable_testing ()
33
44project (cppparser VERSION 1.0.0)
@@ -14,6 +14,8 @@ if(MSVC)
1414 SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd\" 4996\" " )
1515endif ()
1616
17+ option (CPPPARSER_BUILD_TESTS "Build tests" OFF )
18+
1719add_subdirectory (cppast )
1820add_subdirectory (cppparser )
1921add_subdirectory (cppwriter )
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ target_include_directories(cppast
2020)
2121set_target_properties (cppast PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_COMMAND} " )
2222
23- add_subdirectory (test )
23+ if (CPPPARSER_BUILD_TESTS)
24+ add_subdirectory (test )
25+ endif ()
2426
2527install (DIRECTORY "include/cppast" DESTINATION "include" )
Original file line number Diff line number Diff line change @@ -3,14 +3,17 @@ if(MSVC)
33 SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd\" 4996\" " )
44endif ()
55
6- add_subdirectory (test )
76add_subdirectory (third_party/btyacc_tp )
87
9- add_definitions (-DBOOST_AUTO_LINK_NOMANGLE )
8+ if (CPPPARSER_BUILD_TESTS)
9+ add_subdirectory (test )
1010
11- add_subdirectory ( ../../common/third_party/boost_tp/cmake ${CMAKE_BINARY_DIR} /boost )
11+ add_definitions ( -DBOOST_AUTO_LINK_NOMANGLE )
1212
13- include_directories (../../common/third_party )
13+ add_subdirectory (../../common/third_party/boost_tp/cmake ${CMAKE_BINARY_DIR} /boost )
14+
15+ include_directories (../../common/third_party )
16+ endif ()
1417
1518#############################################
1619## CppParser
You can’t perform that action at this time.
0 commit comments