29 lines
289 B
CMake
29 lines
289 B
CMake
include(GNUInstallDirs)
|
|
|
|
macro(setup_project name dir)
|
|
project(
|
|
${name}
|
|
)
|
|
|
|
file(
|
|
GLOB
|
|
${name}_SRC
|
|
*.c
|
|
)
|
|
|
|
add_executable(
|
|
${name}
|
|
${${name}_SRC}
|
|
)
|
|
|
|
target_link_libraries(
|
|
${name}
|
|
PRIVATE
|
|
MDECore Mw
|
|
)
|
|
|
|
install(
|
|
TARGETS ${name}
|
|
DESTINATION ${dir}
|
|
)
|
|
endmacro()
|