Tools/GscriptGenerator/CMakeLists.txt

Tue, 06 Jul 2021 10:22:49 +0300

author
cemkalyoncu
date
Tue, 06 Jul 2021 10:22:49 +0300
branch
4.x-dev
changeset 1701
b168349a931d
parent 1294
2a66e0eac606
permissions
-rw-r--r--

* Image/Bitmap rotate

1282
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
1 cmake_minimum_required(VERSION 2.8)
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
2
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
3 project(GscriptGenerator)
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
4
1294
2a66e0eac606 *Gscript Generator parsing is added
Luca Tonini
parents: 1282
diff changeset
5 include(FindEXPAT)
2a66e0eac606 *Gscript Generator parsing is added
Luca Tonini
parents: 1282
diff changeset
6 find_package(EXPAT REQUIRED)
2a66e0eac606 *Gscript Generator parsing is added
Luca Tonini
parents: 1282
diff changeset
7 include_directories(${EXPAT_INCLUDE_DIRS})
2a66e0eac606 *Gscript Generator parsing is added
Luca Tonini
parents: 1282
diff changeset
8
2a66e0eac606 *Gscript Generator parsing is added
Luca Tonini
parents: 1282
diff changeset
9
1282
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
10 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/Bin)
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
11 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_LIST_DIR}/Bin)
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
12 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_LIST_DIR}/Bin)
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
13
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
14 if(CMAKE_COMPILER_IS_GNUCXX)
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
15 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
16 endif()
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
17
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
18 if(MSVC)
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
19 ADD_DEFINITIONS(-D_SBCS -D_CRT_SECURE_NO_WARNINGS)
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
20
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
21 SET(configs
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
22 CMAKE_C_FLAGS_DEBUG
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
23 CMAKE_C_FLAGS_MINSIZEREL
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
24 CMAKE_C_FLAGS_RELEASE
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
25 CMAKE_C_FLAGS_RELWITHDEBINFO
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
26 CMAKE_CXX_FLAGS_DEBUG
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
27 CMAKE_CXX_FLAGS_MINSIZEREL
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
28 CMAKE_CXX_FLAGS_RELEASE
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
29 CMAKE_CXX_FLAGS_RELWITHDEBINFO
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
30 )
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
31
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
32
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
33 add_definitions( "/D_CRT_SECURE_NO_WARNINGS /wd4068" )
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
34
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
35 FOREACH(config ${configs})
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
36 IF(${config} MATCHES "/MD")
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
37 STRING(REGEX REPLACE "/MD" "/MT" ${config} "${${config}}")
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
38 ENDIF()
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
39 ENDFOREACH()
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
40 endif()
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
41
1294
2a66e0eac606 *Gscript Generator parsing is added
Luca Tonini
parents: 1282
diff changeset
42 add_executable(${PROJECT_NAME} Source/GscriptGenerator.cpp)
2a66e0eac606 *Gscript Generator parsing is added
Luca Tonini
parents: 1282
diff changeset
43 target_link_libraries(${PROJECT_NAME} ${EXPAT_LIBRARIES})
1282
39dee6b2b133 *Creation of Gscript Generator
Luca Tonini
parents:
diff changeset
44

mercurial