2 #============================================================================
3 # Builds and install the executable creaNewProject
5 SET(EXE_NAME creaNewProject)
6 SET(${EXE_NAME}_SOURCES creaNewProject.cpp)
7 SET(${EXE_NAME}_HAS_GUI TRUE)
8 SET(${EXE_NAME}_CONSOLE FALSE)
9 SET(${EXE_NAME}_LINK_LIBRARIES crea)
11 CREA_ADD_EXECUTABLE( ${EXE_NAME} )
12 #============================================================================
15 #============================================================================
16 # Installs creaNewProject.bat/.sh
17 # used to creates the file architecture for a new project
18 # and configures/installs the empty project structure used by creaNewProject
19 SET(INPUT_PROJECT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/NewProject)
25 ${CMAKE_CURRENT_SOURCE_DIR}/xcopy.exe
26 ${EXECUTABLE_OUTPUT_PATH}/Debug/xcopy.exe
30 ${CMAKE_CURRENT_SOURCE_DIR}/creaNewProject.bat.in
31 ${EXECUTABLE_OUTPUT_PATH}/Debug/creaNewProject.bat
36 ${CMAKE_CURRENT_SOURCE_DIR}/NewProject/lib/template_lib/creaSystem.h.in
37 ${EXECUTABLE_OUTPUT_PATH}/lib/template_lib/${PROJECT_NAME}System.h
41 CREA_MKDIR(${EXECUTABLE_OUTPUT_PATH}/Debug/creaNewProject_data)
42 CREA_CPDIR(${INPUT_PROJECT_DIR} ${EXECUTABLE_OUTPUT_PATH}/Debug/creaNewProject_data )
46 ${CMAKE_CURRENT_SOURCE_DIR}/xcopy.exe
47 ${EXECUTABLE_OUTPUT_PATH}/Release/xcopy.exe
51 ${CMAKE_CURRENT_SOURCE_DIR}/creaNewProject.bat.in
52 ${EXECUTABLE_OUTPUT_PATH}/Release/creaNewProject.bat
55 CREA_MKDIR(${EXECUTABLE_OUTPUT_PATH}/Release/creaNewProject_data)
56 CREA_CPDIR(${INPUT_PROJECT_DIR} ${EXECUTABLE_OUTPUT_PATH}/Release/creaNewProject_data )
61 PROGRAMS ${EXECUTABLE_OUTPUT_PATH}/Debug/xcopy.exe
65 PROGRAMS ${EXECUTABLE_OUTPUT_PATH}/Debug/creaNewProject.bat
69 DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/Debug/creaNewProject_data
75 # ======================= LINUX =======================
79 ${CMAKE_CURRENT_SOURCE_DIR}/creaNewProject.sh.in
80 ${EXECUTABLE_OUTPUT_PATH}/creaNewProject.sh
85 # ${CMAKE_CURRENT_SOURCE_DIR}/NewProject/lib/template_lib/creaSystem.h.in
86 # ${EXECUTABLE_OUTPUT_PATH}/NewProject/lib/template_lib/${PROJECT_NAME}System.h
87 # ${CMAKE_CURRENT_SOURCE_DIR}/NewProject/lib/template_lib/${PROJECT_NAME}System.h
91 CREA_MKDIR(${EXECUTABLE_OUTPUT_PATH}/share/creaNewProject)
92 CREA_CPDIR(${INPUT_PROJECT_DIR} ${EXECUTABLE_OUTPUT_PATH}/share/creaNewProject)
96 FILES ${EXECUTABLE_OUTPUT_PATH}/creaNewProject.sh
98 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
102 DIRECTORY ${EXECUTABLE_OUTPUT_PATH}/share/creaNewProject