mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
15 lines
407 B
CMake
15 lines
407 B
CMake
|
FILE(GLOB examples_SRCS "*.cpp")
|
||
|
|
||
|
FOREACH(example_src ${examples_SRCS})
|
||
|
GET_FILENAME_COMPONENT(example ${example_src} NAME_WE)
|
||
|
ADD_EXECUTABLE(${example} ${example_src})
|
||
|
GET_TARGET_PROPERTY(example_executable ${example} LOCATION)
|
||
|
ADD_CUSTOM_COMMAND(
|
||
|
TARGET ${example}
|
||
|
POST_BUILD
|
||
|
COMMAND ${example_executable}
|
||
|
ARGS >${CMAKE_CURRENT_BINARY_DIR}/${example}.out
|
||
|
)
|
||
|
MESSAGE(coucou)
|
||
|
ENDFOREACH(example_src)
|