File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ endif()
98
98
# Cucumber-Cpp
99
99
#
100
100
101
- set (CUKE_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR} /include )
101
+ set (CUKE_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /include )
102
102
103
- include_directories (${CUKE_INCLUDE_DIRS } )
103
+ include_directories (${CUKE_INCLUDE_DIR } )
104
104
105
105
set (CUKE_LIBRARIES cucumber-cpp ${CUKE_EXTRA_LIBRARIES} )
106
106
Original file line number Diff line number Diff line change @@ -17,17 +17,25 @@ set(CUKE_SOURCES
17
17
18
18
if (GTEST_FOUND)
19
19
include_directories (${GTEST_INCLUDE_DIRS} )
20
- set (CUKE_SOURCES ${ CUKE_SOURCES} drivers/GTestDriver.cpp)
20
+ list ( APPEND CUKE_SOURCES drivers/GTestDriver.cpp)
21
21
endif ()
22
22
23
23
if (CPPSPEC_FOUND)
24
24
include_directories (${CPPSPEC_INCLUDE_DIRS} )
25
- set (CUKE_SOURCES ${ CUKE_SOURCES} drivers/CppSpecDriver.cpp)
25
+ list ( APPEND CUKE_SOURCES drivers/CppSpecDriver.cpp)
26
26
endif ()
27
27
28
28
if (Boost_UNIT_TEST_FRAMEWORK_FOUND)
29
- set (CUKE_SOURCES ${ CUKE_SOURCES} drivers/BoostDriver.cpp)
29
+ list ( APPEND CUKE_SOURCES drivers/BoostDriver.cpp)
30
30
endif ()
31
31
32
+ if (CMAKE_EXTRA_GENERATOR OR MSVC_IDE )
33
+ message (STATUS "Adding header files to project" )
34
+ file (GLOB_RECURSE CUKE_HEADERS "${CUKE_INCLUDE_DIR} /cucumber-cpp/*.hpp" )
35
+ if (MSVC_IDE )
36
+ source_group ("Header Files" FILES ${CUKE_HEADERS} )
37
+ endif ()
38
+ list (APPEND CUKE_SOURCES ${CUKE_HEADERS} )
39
+ endif ()
32
40
33
41
add_library (cucumber-cpp STATIC ${CUKE_SOURCES} )
You can’t perform that action at this time.
0 commit comments