mirror of
https://github.com/boostorg/predef.git
synced 2025-07-30 19:57:14 +02:00
Minor tweaks to cmake support to make hash-boost conversion easier.
This commit is contained in:
@ -15,15 +15,15 @@
|
|||||||
# declarative targets.
|
# declarative targets.
|
||||||
cmake_minimum_required( VERSION 3.0 )
|
cmake_minimum_required( VERSION 3.0 )
|
||||||
|
|
||||||
project( BoostPredefCMakeSelfTest )
|
project( PredefCMakeSelfTest )
|
||||||
|
|
||||||
# Process cmake file at root of library and use
|
# Process cmake file at root of library and use
|
||||||
# ${CMAKE_CURRENT_BINARY_DIR}/libs/boost_predef as workspace
|
# ${CMAKE_CURRENT_BINARY_DIR}/libs/predef as workspace
|
||||||
add_subdirectory( ../.. ${CMAKE_CURRENT_BINARY_DIR}/libs/boost_predef )
|
add_subdirectory( ../.. ${CMAKE_CURRENT_BINARY_DIR}/libs/predef )
|
||||||
|
|
||||||
# The executable just includes a predef header to verify that it's used.
|
# The executable just includes a predef header to verify that it's used.
|
||||||
add_executable( boost_predef_cmake_test_prj main.cpp )
|
add_executable( predef_cmake_test_prj main.cpp )
|
||||||
|
|
||||||
# The executable needs to "use" the Predef "library" to get the usage
|
# The executable needs to "use" the Predef "library" to get the usage
|
||||||
# requirements added to the executable build.
|
# requirements added to the executable build.
|
||||||
target_link_libraries( boost_predef_cmake_test_prj Boost::predef )
|
target_link_libraries( predef_cmake_test_prj Boost::predef )
|
||||||
|
@ -7,7 +7,7 @@ http://www.boost.org/LICENSE_1_0.txt
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Dummy executable, just to make sure that we can find the Boost.predef header
|
Dummy executable, just to make sure that we can find the Boost Predef header
|
||||||
files.
|
files.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user