rev: tip jasm/CMakeLists.txt -rw-r--r-- 678 bytes View raw Log this file
24ac64361fa3Jonas Hultén Workaround for swedish output from the hg command. a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
project (jasm)

# This is used to update the revision from source control.
# This can safely be skipped if it is in the way
#################################################
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
	add_custom_command(
		OUTPUT jasm/revision.h jasm/revision_hash.h
		COMMAND python3
		ARGS increase_revision.py
		WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/jasm
	)
	add_custom_target(version ALL DEPENDS jasm/revision.h jasm/revision_hash.h)
endif("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
#################################################

add_subdirectory(core)
add_subdirectory(hasher)
add_subdirectory(jasm)