File tree Expand file tree Collapse file tree 6 files changed +10
-0
lines changed
Expand file tree Collapse file tree 6 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ if (VFC_INSTALL AND VFC_INSTALL_SET_RPATH)
4444 endif ()
4545endif ()
4646
47+ function (vfc_set_folder target )
48+ set_property (TARGET ${target} PROPERTY FOLDER ${VFC_ROOT_FOLDER} )
49+ endfunction ()
50+
4751function (vfc_setup_filters)
4852 set (options )
4953 set (oneValueArgs SRC_DIR INCLUDE_DIR)
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ add_custom_command(OUTPUT ${outputFile}
2424 COMMENT "Generating API documentation with Doxygen" VERBATIM )
2525add_custom_target (vfc_doc ALL DEPENDS ${outputFile} )
2626
27+ vfc_set_folder(vfc_doc)
28+
2729if (VFC_INSTALL)
2830 install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} /html/ DESTINATION ${CMAKE_INSTALL_DOCDIR} )
2931endif ()
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ add_library(vfc_lib ${VFC_LIB} ${sources})
44set_target_properties (vfc_lib PROPERTIES OUTPUT_NAME vfc)
55target_include_directories (vfc_lib PRIVATE glm src)
66
7+ vfc_set_folder(vfc_lib)
78vfc_setup_filters(SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR} /src
89 INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /include /VFC
910 FILES ${sources} )
Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ add_executable(vfc_lib_test ${sources})
1010target_include_directories (vfc_lib_test PRIVATE ${GTEST_INCLUDE_DIRS} ../glm)
1111target_link_libraries (vfc_lib_test PRIVATE VFC::lib ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )
1212
13+ vfc_set_folder(vfc_lib_test)
1314add_test (NAME VFCLibTest COMMAND vfc_lib_test)
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ add_executable(vfc ${sources})
44target_link_libraries (vfc PRIVATE VFC::lib)
55target_include_directories (vfc PRIVATE rapidjson/include )
66
7+ vfc_set_folder(vfc)
78vfc_install_executable(vfc tool)
89
910add_subdirectory (test )
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ target_include_directories(vfc_tool_test PRIVATE ${GTEST_INCLUDE_DIRS} .. ../rap
1212target_link_libraries (vfc_tool_test PRIVATE VFC::lib ${GTEST_BOTH_LIBRARIES}
1313 ${CMAKE_THREAD_LIBS_INIT} )
1414
15+ vfc_set_folder(vfc_tool_test)
1516add_test (NAME VFCToolTest COMMAND vfc_tool_test)
1617
1718set (functionalTestPath ${CMAKE_CURRENT_SOURCE_DIR} /functional)
You can’t perform that action at this time.
0 commit comments