You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
482 B
16 lines
482 B
project(CppSources)
|
|
|
|
|
|
set (CPP_SOURCES transfer.cpp)
|
|
set (CPP_INCLUDES .)#${C_INCLUDES} )
|
|
set (CPP_FLAGS ${C_FLAGS})
|
|
set (CPP_DEFS ${C_DEFS})
|
|
|
|
add_library(${PROJECT_NAME} ${CPP_SOURCES})
|
|
target_compile_options(${PROJECT_NAME} PRIVATE ${CPP_FLAGS})
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE ${CPP_DEFS})
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${CPP_INCLUDES})
|
|
|
|
#To create an alias to be used on the main CMAKE.
|
|
add_library(sub::cppSources ALIAS ${PROJECT_NAME})
|