CMakeLists.txt (497B)
1 file(GLOB files "*") 2 foreach(file in ${files}) 3 if(IS_DIRECTORY "${file}" AND EXISTS "${file}/CMakeLists.txt") 4 get_filename_component(mod ${file} NAME) 5 message(STATUS "Found target ${mod}") 6 add_subdirectory(${mod}) 7 endif() 8 endforeach() 9 10 11 configure_file(stellar_version.cpp.in stellar_version.cpp @ONLY) 12 add_library(Stellar_version STATIC ${CMAKE_CURRENT_BINARY_DIR}/stellar_version.cpp) 13 target_include_directories(Stellar_version PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})