Changeset 19 in pacpusframework for trunk/cmake/PacpusUtilities.cmake
- Timestamp:
- Jan 8, 2013, 1:30:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cmake/PacpusUtilities.cmake
r6 r19 157 157 endif() 158 158 endfunction() 159 160 # ======================================== 161 # Pacpus add executable and set debug postfix 162 # ======================================== 163 function(pacpus_add_executable) 164 add_executable(${target} 165 ${ARGV} 166 ) 167 set_target_properties( 168 ${target} 169 PROPERTIES DEBUG_POSTFIX "_d" 170 ) 171 endfunction() 172 173 # ======================================== 174 # Pacpus install 175 # ======================================== 176 function(pacpus_install target) 177 install( 178 TARGETS ${target} 179 RUNTIME DESTINATION ${PACPUS_INSTALL_DIR}/bin 180 LIBRARY DESTINATION ${PACPUS_INSTALL_DIR}/lib 181 ARCHIVE DESTINATION ${PACPUS_INSTALL_DIR}/lib 182 ) 183 endfunction() 184 185 # ======================================== 186 # Pacpus folder 187 # ======================================== 188 function(pacpus_folder target folder_name) 189 if(PACPUS_USE_FOLDERS AND MSVC) 190 set_target_properties(${target} 191 PROPERTIES FOLDER ${folder_name} 192 ) 193 endif() 194 endfunction()
Note:
See TracChangeset
for help on using the changeset viewer.