File tree 4 files changed +15
-15
lines changed
4 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 27
27
* .app
28
28
29
29
# Build folder
30
- . /Bin /
31
- . /PrjMac /
32
- . /PrjVisualStudio /
33
- . /PrjUWP /
34
- . /PrjEmscripten /
30
+ /Bin /
31
+ /PrjMac /
32
+ /PrjVisualStudio /
33
+ /PrjUWP /
34
+ /PrjEmscripten /
Original file line number Diff line number Diff line change 1
1
function (target_precompiled_header project_target pch_source project_sources)
2
2
if (MSVC )
3
- get_filename_component (pch_basename ${pch_source} NAME_WE )
3
+ get_filename_component (pch_basename ${pch_source} NAME_WE )
4
4
set (pch_header "${pch_basename} .h" )
5
5
6
6
set_target_properties (${project_target} PROPERTIES COMPILE_FLAGS "/Yu${pch_header} " )
7
- set_source_files_properties (${pch_source} PROPERTIES COMPILE_FLAGS "/Yc${pch_header} " )
7
+ set_source_files_properties (${pch_source} PROPERTIES COMPILE_FLAGS "/Yc${pch_header} " )
8
8
endif (MSVC )
9
9
endfunction ()
Original file line number Diff line number Diff line change 1
1
# group source on visual project
2
- function (setup_project_group project_source current_dir)
3
- foreach (source IN LISTS project_source)
2
+ function (setup_project_group project_source current_dir)
3
+ foreach (source IN LISTS project_source)
4
4
# get source path
5
- get_filename_component (source_path ${source} PATH )
5
+ get_filename_component (source_path ${source} PATH )
6
6
7
7
# get source relative path
8
- string (REPLACE "${current_dir} /./" "" source_relative ${source_path} )
8
+ string (REPLACE "${current_dir} /./" "" source_relative ${source_path} )
9
9
10
10
if (MSVC OR XCODE)
11
11
# get group name
12
12
string (REPLACE "/" "\\ " group_name ${source_relative} )
13
13
else ()
14
14
set (group_name ${source_relative} )
15
15
endif ()
16
-
16
+
17
17
if ("${source_relative} " STREQUAL "${source_path} " )
18
18
# no need group because source is in $current_dir
19
19
else ()
20
20
# setup project group
21
21
source_group ("${group_name} " FILES "${source} " )
22
- endif ()
22
+ endif ()
23
23
endforeach ()
24
24
endfunction ()
25
25
26
- function (add_source_group project_source group_name)
26
+ function (add_source_group project_source group_name)
27
27
foreach (source IN LISTS project_source)
28
28
# setup project group
29
29
source_group ("${group_name} " FILES "${source} " )
Original file line number Diff line number Diff line change 1
- 0.0.1
1
+ 0.0.2
You can’t perform that action at this time.
0 commit comments