Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
lubyk/modules/CMakeLists.txt
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (32 sloc)
1.52 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ---------------------------------------------------------------------------- | |
| # CMake file to build all bindings for projects in 'modules'. | |
| # See root CMakeLists.txt | |
| # | |
| # ---------------------------------------------------------------------------- | |
| project(modules) | |
| # ---------------------------------------------------------------------------------- | |
| # Include common directories | |
| # ---------------------------------------------------------------------------------- | |
| include_directories(core/include core/include/lua ${CMAKE_CURRENT_SOURCE_DIR}) | |
| # ---------------------------------------------------------------------------------- | |
| # Build each module | |
| # ---------------------------------------------------------------------------------- | |
| set(MODULES "") | |
| file (GLOB MOD_LIST ${CMAKE_CURRENT_SOURCE_DIR}/*/CMakeLists.txt) | |
| foreach(FILE ${MOD_LIST}) | |
| get_filename_component(PARENT_DIR ${FILE} PATH) | |
| list(APPEND MODULES ${PARENT_DIR}) | |
| endforeach(FILE) | |
| # ============================================================================== | |
| # | |
| # Create all targets for module (lib, core, sub, vendor) | |
| # | |
| # ============================================================================== | |
| foreach (MODULE ${MODULES}) | |
| add_subdirectory(${MODULE}) | |
| endforeach (MODULE) | |
| # ---------------------------------------------------------------------------------- | |
| # base = dub lk lfs mdns test xml yaml zmq | |
| # ---------------------------------------------------------------------------------- | |
| add_custom_target(base true) | |
| add_dependencies(base dub lk lfs mdns test xml yaml zmq) |