Build system refactored to be comatible with ConanCenter
This commit is contained in:
1 parent
2078de7151
commit
32779e01f0
16 files changed
+77
-50
No files matched your search
@@ -20,9 +20,11 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
|
||||
function(add_example target)
|
||||
add_executable(${target} ${target}.cpp)
|
||||
target_link_libraries(${target} PRIVATE mp::units)
|
||||
target_link_libraries(${target} PRIVATE mp-units::mp-units)
|
||||
endfunction()
|
||||
|
||||
add_example(box_example)
|
||||
|
||||
@@ -20,9 +20,11 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
|
||||
function(add_example target)
|
||||
add_executable(${target}_alt ${target}.cpp)
|
||||
target_link_libraries(${target}_alt PRIVATE mp::units)
|
||||
target_link_libraries(${target}_alt PRIVATE mp-units::mp-units)
|
||||
endfunction()
|
||||
|
||||
add_example(box_example)
|
||||
|
||||
Reference in new issue
Block a user