CMakeLists.txt 645 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
project(testdatacreation)
  message("source-dir: ${AMDiS_SOURCE_DIR}")
  include_directories(${AMDiS_SOURCE_DIR})
  file(GLOB PROJECTFILES src/*Project.cpp)
  foreach(projectfile ${PROJECTFILES})
  	#create creatorname
  	get_filename_component(CppName ${projectfile}, NAME_WE)
  	string(REPLACE "Project" "" creatorsuffix ${CppName})
	set(PROJECTINCLUDE "${CppName}.h")
	configure_file(src/creator_base.cpp src/creator${creatorsuffix}.cpp @ONLY)
  	add_executable(creator${creatorsuffix} src/creator${creatorsuffix}.cpp src/ProjectList.cpp ${projectfile})
	target_link_libraries(creator${creatorsuffix} ${AMDiS_LIBS})
  endforeach(projectfile)