diff options
Diffstat (limited to 'Tests/RunCMake/ObjectLibrary/Dependencies.cmake')
-rw-r--r-- | Tests/RunCMake/ObjectLibrary/Dependencies.cmake | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/Dependencies.cmake b/Tests/RunCMake/ObjectLibrary/Dependencies.cmake index 4e3db5f..6ddf545 100644 --- a/Tests/RunCMake/ObjectLibrary/Dependencies.cmake +++ b/Tests/RunCMake/ObjectLibrary/Dependencies.cmake @@ -1,10 +1,6 @@ -cmake_minimum_required(VERSION 3.7) - -project(Dependencies) - -add_library(myobj OBJECT ${CMAKE_BINARY_DIR}/depends_obj.cpp) -add_library(mylib STATIC $<TARGET_OBJECTS:myobj> depends_lib.cpp) -add_executable(myexe depends_main.cpp) +add_library(myobj OBJECT ${CMAKE_BINARY_DIR}/depends_obj.c) +add_library(mylib STATIC $<TARGET_OBJECTS:myobj> depends_lib.c) +add_executable(myexe depends_main.c) target_link_libraries(myexe mylib) enable_testing() |