1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kerneltest/e32test/symc/tsymc.cmake Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,62 @@
1.4 +# Copyright (c) 2012 Stéphane Lenclud.
1.5 +# All rights reserved.
1.6 +# This component and the accompanying materials are made available
1.7 +# under the terms of the License "Eclipse Public License v1.0"
1.8 +# which accompanies this distribution, and is available
1.9 +# at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +#
1.11 +# Initial Contributors:
1.12 +# Stéphane Lenclud.
1.13 +#
1.14 +
1.15 +####################
1.16 +push_target(tsymc)
1.17 +####################
1.18 +
1.19 +#-------------------------------------------------------------------
1.20 +#Add this *.cmake file to our source tree
1.21 +#-------------------------------------------------------------------
1.22 +add_cmake_source()
1.23 +#Make sure all the output from all projects will go in one place
1.24 +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)
1.25 +#Visual Studio IDE folders
1.26 +source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
1.27 +source_group(Includes REGULAR_EXPRESSION ".+\\.h$")
1.28 +source_group(Def REGULAR_EXPRESSION ".+\\.def$")
1.29 +#-------------------------------------------------------------------
1.30 +
1.31 +### EPOC: emulator executable
1.32 +
1.33 +#-------------------------------------------------------------------
1.34 +#Define our source and target
1.35 +#-------------------------------------------------------------------
1.36 +get_source(source)
1.37 +add_executable(tsymc WIN32 ${source} ./e32test/symc/tsymc.cpp ./e32test/symc/tsymc_uid.cpp)
1.38 +# Using /INCLUDE to obtain same effect has MMP's FIRSTLIB
1.39 +set_target_properties(tsymc PROPERTIES LINK_FLAGS "/INCLUDE:__E32Startup")
1.40 +target_link_libraries(tsymc estub eexe euser efsrv)
1.41 +#-------------------------------------------------------------------
1.42 +
1.43 +
1.44 +
1.45 +#-------------------------------------------------------------------
1.46 +#Fix up include directories
1.47 +#-------------------------------------------------------------------
1.48 +system_include(/epoc32/include)
1.49 +system_include(/epoc32/include/platform)
1.50 +#-------------------------------------------------------------------
1.51 +
1.52 +
1.53 +#-------------------------------------------------------------------
1.54 +#Install
1.55 +#-------------------------------------------------------------------
1.56 +#Copy test files
1.57 +install( FILES
1.58 + ${PROJECT_SOURCE_DIR}/os/kernelhwsrv/kerneltest/e32test/symc/tsymc.txt
1.59 + DESTINATION ${CMAKE_BINARY_DIR}/\${BUILD_TYPE}/c/tsymc )
1.60 +#-------------------------------------------------------------------
1.61 +
1.62 +
1.63 +####################
1.64 +pop_target(tsymc)
1.65 +####################
1.66 \ No newline at end of file