os/kernelhwsrv/kerneltest/e32test/symc/tsymc.cmake
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
parent 0 bde4ae8d615e
permissions -rw-r--r--
Update contrib.
     1 # Copyright (c) 2012 Stéphane Lenclud.
     2 # All rights reserved.
     3 # This component and the accompanying materials are made available
     4 # under the terms of the License "Eclipse Public License v1.0"
     5 # which accompanies this distribution, and is available
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 #
     8 # Initial Contributors:
     9 # Stéphane Lenclud.
    10 #
    11 
    12 ####################
    13 push_target(tsymc)
    14 ####################
    15 
    16 #-------------------------------------------------------------------
    17 #Add this *.cmake file to our source tree
    18 #-------------------------------------------------------------------
    19 add_cmake_source()
    20 #Make sure all the output from all projects will go in one place
    21 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
    22 #Visual Studio IDE folders
    23 source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
    24 source_group(Includes REGULAR_EXPRESSION ".+\\.h$") 	
    25 source_group(Def REGULAR_EXPRESSION ".+\\.def$") 	
    26 #-------------------------------------------------------------------
    27 
    28 ### EPOC: emulator executable
    29 
    30 #-------------------------------------------------------------------
    31 #Define our source and target
    32 #-------------------------------------------------------------------
    33 get_source(source)
    34 add_executable(tsymc WIN32 ${source} ./e32test/symc/tsymc.cpp ./e32test/symc/tsymc_uid.cpp) 
    35 # Using /INCLUDE to obtain same effect has MMP's FIRSTLIB
    36 set_target_properties(tsymc PROPERTIES LINK_FLAGS "/INCLUDE:__E32Startup")
    37 target_link_libraries(tsymc estub eexe euser efsrv)
    38 #-------------------------------------------------------------------
    39 
    40 
    41 
    42 #-------------------------------------------------------------------
    43 #Fix up include directories
    44 #-------------------------------------------------------------------
    45 system_include(/epoc32/include)
    46 system_include(/epoc32/include/platform)
    47 #-------------------------------------------------------------------
    48 
    49 
    50 #-------------------------------------------------------------------
    51 #Install
    52 #-------------------------------------------------------------------
    53 #Copy test files
    54 install(	FILES 
    55 			${PROJECT_SOURCE_DIR}/os/kernelhwsrv/kerneltest/e32test/symc/tsymc.txt
    56 			DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/\${BUILD_TYPE}/c/tsymc )
    57 #-------------------------------------------------------------------
    58 
    59 
    60 ####################
    61 pop_target(tsymc)
    62 ####################